all:debug

debug : lib app
release : releaselib  releaseapp

lib:
	@cd mapsxml; make -f mapsxml.mak debug
	@cd mtqlib; rm -f *.o; make -f mtqapi.mak debug
	#@cd mtqlib; rm -f *.o; make -f mtqapi_th.mak debug

app:
	@cd mtqgrp; make -f mtqgrp.mak debug
	@make -f mtqexecs.mak debug
	#@make -f mtqexecs_th.mak debug
	
releaselib:
	@cd mapsxml; make -f mapsxml.mak release
	@cd mtqlib; rm -f *.o; make -f mtqapi.mak release
	#@cd mtqlib; rm -f *.o; make -f mtqapi_th.mak release
	
releaseapp:
	@cd mtqgrp; make -f mtqgrp.mak release
	@make -f mtqexecs.mak release
	#@make -f mtqexecs_th.mak debug
	
clean:
	@cd mapsxml; make -f mapsxml.mak   $@
	@cd mtqlib;  make -f mtqapi.mak    $@
	#@cd mtqlib;  make -f mtqapi_th.mak $@
	@cd mtqgrp;  make -f mtqgrp.mak    $@
	@make -f mtqexecs.mak $@
	#@make -f mtqexecs_th.mak $@

cleanlib:
	@cd mapsxml; make -f mapsxml.mak   $@
	@cd mtqlib;  make -f mtqapi.mak    $@
	@cd mtqlib;  make -f mtqapi_th.mak $@
	
cleanapp:
	@cd mtqgrp;  make -f mtqgrp.mak    $@
	@make -f mtqexecs.mak $@
	@make -f mtqexecs_th.mak $@

